package com.kuangqiyuan;

public class Main {
  public static void main(String[] args) {
    YatzyGame yatzyGame = new YatzyGame();
    int score;

    score = yatzyGame.play(new int[]{2, 2, 1, 2, 1});
    System.out.println(String.format("YatzyGame score is: %d\n---", score));

    score = yatzyGame.play(new int[]{3, 2, 4, 5, 1});
    System.out.println(String.format("YatzyGame score is: %d\n---", score));

    score = yatzyGame.play(new int[]{3, 2, 4, 5, 6});
    System.out.println(String.format("YatzyGame score is: %d\n---", score));

    score = yatzyGame.play(new int[]{3, 2, 4, 3, 3});
    System.out.println(String.format("YatzyGame score is: %d\n---", score));

    score = yatzyGame.play(new int[]{3, 3, 3, 3, 3});
    System.out.println(String.format("YatzyGame score is: %d\n---", score));
  }
}
